package main

import (
	"context"
	"jkgo/jk/jklog"
)

func UserServiceTest() error {
	jklog.L().Infoln("\n\n\nstart to test dubbo")
	user := &User{}
	user.Name = "123"
	user.Phone = "8983829132"
	user.Id = "jmaiks"
	//_, err := userProvider.AddOne(context.TODO(), user)
	//if err != nil {
	//	panic(err)
	//}

	_, err := userProvider.FindOne(context.TODO(), "123")
	if err != nil {
		jklog.L().Errorln(err)
	} else {
		jklog.L().Infoln("OK")
	}
	jklog.L().Infoln("response result: %v\n", user)
	return nil
}
